KeyComparer Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns the IEqualityComparer<T> used to compare keys in this dictionary.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public IEqualityComparer<TKey> KeyComparer{ get;}
Visual Basic (Declaration)
Public ReadOnly Property KeyComparer As IEqualityComparer(Of TKey)
Visual C++
public:
property IEqualityComparer<TKey>^ KeyComparer {
	IEqualityComparer<TKey>^ get ();
}

Field Value

If the dictionary was created using a comparer, that comparer is returned. Otherwise the default comparer for TKey (EqualityComparer<TKey>.Default) is returned.

See Also